package com.ecoolex.hotel.saas.core.mapper;

import com.ecoolex.framework.common.annotation.Description;
import com.ecoolex.hotel.saas.entity.PresaleCouponOrderOperateRecord;
import com.ecoolex.hotel.saas.entity.PresaleCouponOrderOperateRecordExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;
import org.springframework.lang.NonNull;

public interface PresaleCouponOrderOperateRecordMapper {
    long countByExample(PresaleCouponOrderOperateRecordExample example);

    int deleteByExample(PresaleCouponOrderOperateRecordExample example);

    int deleteByPrimaryKey(Integer recordId);

    int insert(PresaleCouponOrderOperateRecord record);

    int insertSelective(@Param("record") PresaleCouponOrderOperateRecord record, @Param("selective") PresaleCouponOrderOperateRecord.Column ... selective);

    PresaleCouponOrderOperateRecord selectOneByExample(PresaleCouponOrderOperateRecordExample example);

    List<PresaleCouponOrderOperateRecord> selectByExample(PresaleCouponOrderOperateRecordExample example);

    PresaleCouponOrderOperateRecord selectByPrimaryKey(Integer recordId);

    PresaleCouponOrderOperateRecord selectByPrimaryKeyWithLogicalDelete(@Param("recordId") Integer recordId, @Param("andLogicalDeleted") boolean andLogicalDeleted);

    int updateByExampleSelective(@Param("record") PresaleCouponOrderOperateRecord record, @Param("example") PresaleCouponOrderOperateRecordExample example, @Param("selective") PresaleCouponOrderOperateRecord.Column ... selective);

    int updateByExample(@Param("record") PresaleCouponOrderOperateRecord record, @Param("example") PresaleCouponOrderOperateRecordExample example);

    int updateByPrimaryKeySelective(@Param("record") PresaleCouponOrderOperateRecord record, @Param("selective") PresaleCouponOrderOperateRecord.Column ... selective);

    int updateByPrimaryKey(PresaleCouponOrderOperateRecord record);

    int batchInsert(@Param("list") List<PresaleCouponOrderOperateRecord> list);

    int batchInsertSelective(@Param("list") List<PresaleCouponOrderOperateRecord> list, @Param("selective") PresaleCouponOrderOperateRecord.Column ... selective);

    int logicalDeleteByExample(@Param("example") PresaleCouponOrderOperateRecordExample example);

    int logicalDeleteByPrimaryKey(Integer recordId);
}